﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.Practices.Unity;

namespace NMortgage.UI.Tests
{
    [TestClass]
    public class TestBase
    {
        public UnityHelper Helper { get; private set; }

        [TestInitialize]
        public void BaseInitialize()
        {
            Helper = new UnityHelper();
        }
    }
    [TestClass]
    public class TestBase<T>
    {
        public UnityHelper Helper { get; private set; }
        public T Subject { get; set; }

        [TestInitialize]
        public void BaseInitialize()
        {
            Helper = new UnityHelper();
            InitializeSubject();
        }

        protected void InitializeSubject()
        {
            Subject = Helper.Container.Resolve<T>();
        }
    }


}
